package com.crm.model.entity.sys;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ImportExportExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ImportExportExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andImportExportIdIsNull() {
            addCriterion("import_export_id is null");
            return (Criteria) this;
        }

        public Criteria andImportExportIdIsNotNull() {
            addCriterion("import_export_id is not null");
            return (Criteria) this;
        }

        public Criteria andImportExportIdEqualTo(String value) {
            addCriterion("import_export_id =", value, "importExportId");
            return (Criteria) this;
        }

        public Criteria andImportExportIdNotEqualTo(String value) {
            addCriterion("import_export_id <>", value, "importExportId");
            return (Criteria) this;
        }

        public Criteria andImportExportIdGreaterThan(String value) {
            addCriterion("import_export_id >", value, "importExportId");
            return (Criteria) this;
        }

        public Criteria andImportExportIdGreaterThanOrEqualTo(String value) {
            addCriterion("import_export_id >=", value, "importExportId");
            return (Criteria) this;
        }

        public Criteria andImportExportIdLessThan(String value) {
            addCriterion("import_export_id <", value, "importExportId");
            return (Criteria) this;
        }

        public Criteria andImportExportIdLessThanOrEqualTo(String value) {
            addCriterion("import_export_id <=", value, "importExportId");
            return (Criteria) this;
        }

        public Criteria andImportExportIdLike(String value) {
            addCriterion("import_export_id like", value, "importExportId");
            return (Criteria) this;
        }

        public Criteria andImportExportIdNotLike(String value) {
            addCriterion("import_export_id not like", value, "importExportId");
            return (Criteria) this;
        }

        public Criteria andImportExportIdIn(List<String> values) {
            addCriterion("import_export_id in", values, "importExportId");
            return (Criteria) this;
        }

        public Criteria andImportExportIdNotIn(List<String> values) {
            addCriterion("import_export_id not in", values, "importExportId");
            return (Criteria) this;
        }

        public Criteria andImportExportIdBetween(String value1, String value2) {
            addCriterion("import_export_id between", value1, value2, "importExportId");
            return (Criteria) this;
        }

        public Criteria andImportExportIdNotBetween(String value1, String value2) {
            addCriterion("import_export_id not between", value1, value2, "importExportId");
            return (Criteria) this;
        }

        public Criteria andOperatePeopleIdIsNull() {
            addCriterion("operate_people_id is null");
            return (Criteria) this;
        }

        public Criteria andOperatePeopleIdIsNotNull() {
            addCriterion("operate_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andOperatePeopleIdEqualTo(String value) {
            addCriterion("operate_people_id =", value, "operatePeopleId");
            return (Criteria) this;
        }

        public Criteria andOperatePeopleIdNotEqualTo(String value) {
            addCriterion("operate_people_id <>", value, "operatePeopleId");
            return (Criteria) this;
        }

        public Criteria andOperatePeopleIdGreaterThan(String value) {
            addCriterion("operate_people_id >", value, "operatePeopleId");
            return (Criteria) this;
        }

        public Criteria andOperatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("operate_people_id >=", value, "operatePeopleId");
            return (Criteria) this;
        }

        public Criteria andOperatePeopleIdLessThan(String value) {
            addCriterion("operate_people_id <", value, "operatePeopleId");
            return (Criteria) this;
        }

        public Criteria andOperatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("operate_people_id <=", value, "operatePeopleId");
            return (Criteria) this;
        }

        public Criteria andOperatePeopleIdLike(String value) {
            addCriterion("operate_people_id like", value, "operatePeopleId");
            return (Criteria) this;
        }

        public Criteria andOperatePeopleIdNotLike(String value) {
            addCriterion("operate_people_id not like", value, "operatePeopleId");
            return (Criteria) this;
        }

        public Criteria andOperatePeopleIdIn(List<String> values) {
            addCriterion("operate_people_id in", values, "operatePeopleId");
            return (Criteria) this;
        }

        public Criteria andOperatePeopleIdNotIn(List<String> values) {
            addCriterion("operate_people_id not in", values, "operatePeopleId");
            return (Criteria) this;
        }

        public Criteria andOperatePeopleIdBetween(String value1, String value2) {
            addCriterion("operate_people_id between", value1, value2, "operatePeopleId");
            return (Criteria) this;
        }

        public Criteria andOperatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("operate_people_id not between", value1, value2, "operatePeopleId");
            return (Criteria) this;
        }

        public Criteria andOperateTimeIsNull() {
            addCriterion("operate_time is null");
            return (Criteria) this;
        }

        public Criteria andOperateTimeIsNotNull() {
            addCriterion("operate_time is not null");
            return (Criteria) this;
        }

        public Criteria andOperateTimeEqualTo(Date value) {
            addCriterion("operate_time =", value, "operateTime");
            return (Criteria) this;
        }

        public Criteria andOperateTimeNotEqualTo(Date value) {
            addCriterion("operate_time <>", value, "operateTime");
            return (Criteria) this;
        }

        public Criteria andOperateTimeGreaterThan(Date value) {
            addCriterion("operate_time >", value, "operateTime");
            return (Criteria) this;
        }

        public Criteria andOperateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("operate_time >=", value, "operateTime");
            return (Criteria) this;
        }

        public Criteria andOperateTimeLessThan(Date value) {
            addCriterion("operate_time <", value, "operateTime");
            return (Criteria) this;
        }

        public Criteria andOperateTimeLessThanOrEqualTo(Date value) {
            addCriterion("operate_time <=", value, "operateTime");
            return (Criteria) this;
        }

        public Criteria andOperateTimeIn(List<Date> values) {
            addCriterion("operate_time in", values, "operateTime");
            return (Criteria) this;
        }

        public Criteria andOperateTimeNotIn(List<Date> values) {
            addCriterion("operate_time not in", values, "operateTime");
            return (Criteria) this;
        }

        public Criteria andOperateTimeBetween(Date value1, Date value2) {
            addCriterion("operate_time between", value1, value2, "operateTime");
            return (Criteria) this;
        }

        public Criteria andOperateTimeNotBetween(Date value1, Date value2) {
            addCriterion("operate_time not between", value1, value2, "operateTime");
            return (Criteria) this;
        }

        public Criteria andOperateQuantityIsNull() {
            addCriterion("operate_quantity is null");
            return (Criteria) this;
        }

        public Criteria andOperateQuantityIsNotNull() {
            addCriterion("operate_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andOperateQuantityEqualTo(Integer value) {
            addCriterion("operate_quantity =", value, "operateQuantity");
            return (Criteria) this;
        }

        public Criteria andOperateQuantityNotEqualTo(Integer value) {
            addCriterion("operate_quantity <>", value, "operateQuantity");
            return (Criteria) this;
        }

        public Criteria andOperateQuantityGreaterThan(Integer value) {
            addCriterion("operate_quantity >", value, "operateQuantity");
            return (Criteria) this;
        }

        public Criteria andOperateQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("operate_quantity >=", value, "operateQuantity");
            return (Criteria) this;
        }

        public Criteria andOperateQuantityLessThan(Integer value) {
            addCriterion("operate_quantity <", value, "operateQuantity");
            return (Criteria) this;
        }

        public Criteria andOperateQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("operate_quantity <=", value, "operateQuantity");
            return (Criteria) this;
        }

        public Criteria andOperateQuantityIn(List<Integer> values) {
            addCriterion("operate_quantity in", values, "operateQuantity");
            return (Criteria) this;
        }

        public Criteria andOperateQuantityNotIn(List<Integer> values) {
            addCriterion("operate_quantity not in", values, "operateQuantity");
            return (Criteria) this;
        }

        public Criteria andOperateQuantityBetween(Integer value1, Integer value2) {
            addCriterion("operate_quantity between", value1, value2, "operateQuantity");
            return (Criteria) this;
        }

        public Criteria andOperateQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("operate_quantity not between", value1, value2, "operateQuantity");
            return (Criteria) this;
        }

        public Criteria andOperateResultIsNull() {
            addCriterion("operate_result is null");
            return (Criteria) this;
        }

        public Criteria andOperateResultIsNotNull() {
            addCriterion("operate_result is not null");
            return (Criteria) this;
        }

        public Criteria andOperateResultEqualTo(String value) {
            addCriterion("operate_result =", value, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultNotEqualTo(String value) {
            addCriterion("operate_result <>", value, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultGreaterThan(String value) {
            addCriterion("operate_result >", value, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultGreaterThanOrEqualTo(String value) {
            addCriterion("operate_result >=", value, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultLessThan(String value) {
            addCriterion("operate_result <", value, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultLessThanOrEqualTo(String value) {
            addCriterion("operate_result <=", value, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultLike(String value) {
            addCriterion("operate_result like", value, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultNotLike(String value) {
            addCriterion("operate_result not like", value, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultIn(List<String> values) {
            addCriterion("operate_result in", values, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultNotIn(List<String> values) {
            addCriterion("operate_result not in", values, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultBetween(String value1, String value2) {
            addCriterion("operate_result between", value1, value2, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultNotBetween(String value1, String value2) {
            addCriterion("operate_result not between", value1, value2, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateWayIsNull() {
            addCriterion("operate_way is null");
            return (Criteria) this;
        }

        public Criteria andOperateWayIsNotNull() {
            addCriterion("operate_way is not null");
            return (Criteria) this;
        }

        public Criteria andOperateWayEqualTo(String value) {
            addCriterion("operate_way =", value, "operateWay");
            return (Criteria) this;
        }

        public Criteria andOperateWayNotEqualTo(String value) {
            addCriterion("operate_way <>", value, "operateWay");
            return (Criteria) this;
        }

        public Criteria andOperateWayGreaterThan(String value) {
            addCriterion("operate_way >", value, "operateWay");
            return (Criteria) this;
        }

        public Criteria andOperateWayGreaterThanOrEqualTo(String value) {
            addCriterion("operate_way >=", value, "operateWay");
            return (Criteria) this;
        }

        public Criteria andOperateWayLessThan(String value) {
            addCriterion("operate_way <", value, "operateWay");
            return (Criteria) this;
        }

        public Criteria andOperateWayLessThanOrEqualTo(String value) {
            addCriterion("operate_way <=", value, "operateWay");
            return (Criteria) this;
        }

        public Criteria andOperateWayLike(String value) {
            addCriterion("operate_way like", value, "operateWay");
            return (Criteria) this;
        }

        public Criteria andOperateWayNotLike(String value) {
            addCriterion("operate_way not like", value, "operateWay");
            return (Criteria) this;
        }

        public Criteria andOperateWayIn(List<String> values) {
            addCriterion("operate_way in", values, "operateWay");
            return (Criteria) this;
        }

        public Criteria andOperateWayNotIn(List<String> values) {
            addCriterion("operate_way not in", values, "operateWay");
            return (Criteria) this;
        }

        public Criteria andOperateWayBetween(String value1, String value2) {
            addCriterion("operate_way between", value1, value2, "operateWay");
            return (Criteria) this;
        }

        public Criteria andOperateWayNotBetween(String value1, String value2) {
            addCriterion("operate_way not between", value1, value2, "operateWay");
            return (Criteria) this;
        }

        public Criteria andOperateTypeIsNull() {
            addCriterion("operate_type is null");
            return (Criteria) this;
        }

        public Criteria andOperateTypeIsNotNull() {
            addCriterion("operate_type is not null");
            return (Criteria) this;
        }

        public Criteria andOperateTypeEqualTo(String value) {
            addCriterion("operate_type =", value, "operateType");
            return (Criteria) this;
        }

        public Criteria andOperateTypeNotEqualTo(String value) {
            addCriterion("operate_type <>", value, "operateType");
            return (Criteria) this;
        }

        public Criteria andOperateTypeGreaterThan(String value) {
            addCriterion("operate_type >", value, "operateType");
            return (Criteria) this;
        }

        public Criteria andOperateTypeGreaterThanOrEqualTo(String value) {
            addCriterion("operate_type >=", value, "operateType");
            return (Criteria) this;
        }

        public Criteria andOperateTypeLessThan(String value) {
            addCriterion("operate_type <", value, "operateType");
            return (Criteria) this;
        }

        public Criteria andOperateTypeLessThanOrEqualTo(String value) {
            addCriterion("operate_type <=", value, "operateType");
            return (Criteria) this;
        }

        public Criteria andOperateTypeLike(String value) {
            addCriterion("operate_type like", value, "operateType");
            return (Criteria) this;
        }

        public Criteria andOperateTypeNotLike(String value) {
            addCriterion("operate_type not like", value, "operateType");
            return (Criteria) this;
        }

        public Criteria andOperateTypeIn(List<String> values) {
            addCriterion("operate_type in", values, "operateType");
            return (Criteria) this;
        }

        public Criteria andOperateTypeNotIn(List<String> values) {
            addCriterion("operate_type not in", values, "operateType");
            return (Criteria) this;
        }

        public Criteria andOperateTypeBetween(String value1, String value2) {
            addCriterion("operate_type between", value1, value2, "operateType");
            return (Criteria) this;
        }

        public Criteria andOperateTypeNotBetween(String value1, String value2) {
            addCriterion("operate_type not between", value1, value2, "operateType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}